<?php
namespace Admin\Controller;
use Think\Controller;
class LogisticsController extends Controller {
    public function area()
    {   
        $model = D();
        $data = $model->query('select * from wlg_district');
        
        $list = array();
        $i = 0;
        foreach ($data as $val) {
            $list[$i]['id'] = $val['id'];
            $list[$i]['pId'] = $val['pid'];
            $list[$i]['name'] = $val['district'];
            $i+=1;
        }

        $area = json_encode($list);
        
        $this->assign('area',$area);
        $this->display();
    }
    public function area_set()
    {
        $this->display();
    }
    public function settings()
    {
        $this->display();
    }
   
}